package com.ruoyi.miniapp.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;

import java.math.BigDecimal;
import java.util.Date;

public class OrderVO {
    private static final long serialVersionUID = 1L;

    /** 订单id */
    private Long orderId;

    /** 订单编号 */

    private String orderNumber;

    /** 订单状态:1进行中、2待支付 、3已支付、4已完成 */

    private Long orderStatus;

    /** 异常原因 */

    private String abnormality;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")

    private Date orderTime;

    /** 归还时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")

    private Date giveBackTime;

    /** 床位id */

    private Long bedId;

    /** 用户id */

    private Long loginId;

    /** 租借时长 */

    private String leaseTime;

    /** 状态:1正常、2异常 */

    private Long status;

    /** 总价 */

    private BigDecimal rent;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")

    private Date paymentTime;

    private HospitalVO hospital;

    public HospitalVO getHospital() {
        return hospital;
    }

    public void setHospital(HospitalVO hospital) {
        this.hospital = hospital;
    }

    private BigDecimal unitPrice;

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Long getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Long orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getAbnormality() {
        return abnormality;
    }

    public void setAbnormality(String abnormality) {
        this.abnormality = abnormality;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public Date getGiveBackTime() {
        return giveBackTime;
    }

    public void setGiveBackTime(Date giveBackTime) {
        this.giveBackTime = giveBackTime;
    }

    public Long getBedId() {
        return bedId;
    }

    public void setBedId(Long bedId) {
        this.bedId = bedId;
    }

    public Long getLoginId() {
        return loginId;
    }

    public void setLoginId(Long loginId) {
        this.loginId = loginId;
    }

    public String getLeaseTime() {
        return leaseTime;
    }

    public void setLeaseTime(String leaseTime) {
        this.leaseTime = leaseTime;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public BigDecimal getRent() {
        return rent;
    }

    public void setRent(BigDecimal rent) {
        this.rent = rent;
    }

    public Date getPaymentTime() {
        return paymentTime;
    }

    public void setPaymentTime(Date paymentTime) {
        this.paymentTime = paymentTime;
    }

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    @Override
    public String toString() {
        return "OrderVO{" +
                "orderId=" + orderId +
                ", orderNumber='" + orderNumber + '\'' +
                ", orderStatus=" + orderStatus +
                ", abnormality='" + abnormality + '\'' +
                ", orderTime=" + orderTime +
                ", giveBackTime=" + giveBackTime +
                ", bedId=" + bedId +
                ", loginId=" + loginId +
                ", leaseTime='" + leaseTime + '\'' +
                ", status=" + status +
                ", rent=" + rent +
                ", paymentTime=" + paymentTime +
                ", hospital=" + hospital +
                ", unitPrice=" + unitPrice +
                '}';
    }
}
